﻿namespace CSP.Utils

module SeqUtils =
    
    /// Returns the head of a sequence or "None" if the sequence is empty.
    let safeHead (seq: #seq<_>) =
        if Seq.isEmpty seq then None else Some (Seq.head seq)

